/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kwic;

/**
 *
 * @author Tom
 */
public class KWIC {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        /*
        SharedMemory sh=new SharedMemory();
       sh.run();
       * 
   */
        LineStorage lineStorage=new LineStorage();
        Input input= new Input(lineStorage);
        CircularShift circularShift=new CircularShift(lineStorage);
        Alphabetizer alphabetizer=new Alphabetizer(circularShift);
        Output output=new Output(alphabetizer);
        input.read();
        circularShift.makeShift();
        alphabetizer.make();
        output.print();
        
                
            
        
    }
}
